Allow packagers set kconfig_compiler install dir
authorMaximiliano Curia <maxy@gnuservers.com.ar>
Thu, 25 Jan 2018 14:02:56 +0000 (11:02 -0300)
committerPino Toscano <pino@debian.org>
Wed, 25 Feb 2026 04:51:59 +0000 (05:51 +0100)
Origin: Debian
Bug-Debian: https://bugs.debian.org/887452
Last-Update: 2018-01-25

Gbp-Pq: Name Allow-packagers-set-kconfig_compiler-install-dir.patch

CMakeLists.txt
src/kconfig_compiler/CMakeLists.txt

index c88da913ea88ff2f33319aca39246adc6520494a..6236ba657b62c0f5e32c03d67268eda71b757d9d 100644 (file)
@@ -71,6 +71,10 @@ endif()
 include (ECMPoQmTools)
 ecm_install_po_files_as_qm(poqm)
 
+# allow kconfig_compiler install dir to be set as a configure argument
+set(KCONFIG_COMPILER_INSTALL_DIR "${KDE_INSTALL_LIBEXECDIR_KF}" CACHE STRING
+   "Set directory for kconfig compiler tool")
+
 # create a Config.cmake and a ConfigVersion.cmake file and install them
 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6Config")
 
index e9cadf7af09caa8d2eb79cd03f7703fb86ff429c..a07f26804d39af0f3a1587d2aa32a1fc9976228c 100644 (file)
@@ -25,4 +25,4 @@ target_link_libraries(kconfig_compiler Qt6::Xml)
 
 ecm_mark_nongui_executable(kconfig_compiler)
 
-install(TARGETS kconfig_compiler EXPORT KF6ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF})
+install(TARGETS kconfig_compiler EXPORT KF6ConfigCompilerTargets DESTINATION ${KCONFIG_COMPILER_INSTALL_DIR})